<template>
  <div>
    <div class="bg-white grid-content">
      <div style="overflow: hidden">
        <div class="mytitle">
          <svg-icon icon-class="yjbb" class="myIcon" /> 生产运行日报审核
        </div>
      </div>
      <!-- 表格 -->
      <el-table :data="tableData" stripe>
        <el-table-column
          type="index"
          label="序号"
          :index="indexMethod"
        >
        </el-table-column>
        <el-table-column
          align="center"
          fixed="left"
          prop="rq"
          label="日期"
          width="100px"
        >
        </el-table-column>
        <el-table-column prop="bz" align="center"> </el-table-column>
        <el-table-column prop="zj" label="钻井" width="150" align="center">
          <el-table-column
            prop="zjJh"
            label="计划（口）"
            width="64"
            align="center"
          >
          </el-table-column>
          <el-table-column
            prop="zjWc"
            label="完钻（口）"
            width="64"
            align="center"
          >
          </el-table-column>
          <el-table-column
            prop="zjZj"
            label="钻机（台）"
            width="64"
            align="center"
          >
          </el-table-column>
        </el-table-column>
        <el-table-column prop="tc" label="投产" width="150" align="center">
          <el-table-column
            prop="tcJh"
            label="计划（口）"
            width="64"
            align="center"
          >
          </el-table-column>
          <el-table-column
            prop="tcWc"
            label="完钻（口）"
            width="64"
            align="center"
          >
          </el-table-column>
        </el-table-column>
        <el-table-column prop="bk" label="老井补孔" width="150" align="center">
          <el-table-column
            prop="bkJh"
            label="计划（口）"
            width="64"
            align="center"
          >
          </el-table-column>
          <el-table-column
            prop="bkWc"
            label="完钻（口）"
            width="64"
            align="center"
          >
          </el-table-column>
        </el-table-column>
        <el-table-column
          prop="yl"
          label="油水井常规压裂"
          width="150"
          align="center"
        >
          <el-table-column
            prop="ylJh"
            label="计划（口）"
            width="64"
            align="center"
          >
          </el-table-column>
          <el-table-column
            prop="ylWc"
            label="完钻（口）"
            width="64"
            align="center"
          >
          </el-table-column>
        </el-table-column>
        <el-table-column prop="fw" label="缝网压裂" width="150" align="center">
          <el-table-column
            prop="fwJh"
            label="计划（口）"
            width="64"
            align="center"
          >
          </el-table-column>
          <el-table-column
            prop="fwWc"
            label="完钻（口）"
            width="64"
            align="center"
          >
          </el-table-column>
        </el-table-column>
        <el-table-column prop="zs" label="注水" width="150" align="center">
          <el-table-column
            prop="ct"
            label="阶段测调（综合调整方案）"
            width="64"
            align="center"
          >
            <el-table-column
              prop="ctJh"
              label="计划（口）"
              width="64"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="ctWc"
              label="完钻（口）"
              width="64"
              align="center"
            >
            </el-table-column>
          </el-table-column>
          <el-table-column prop="cp" label="重配" width="64" align="center">
            <el-table-column
              prop="cpJh"
              label="井数（口）"
              width="64"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="cpWc"
              label="日影响（立方米）"
              width="64"
              align="center"
            >
            </el-table-column>
          </el-table-column>
        </el-table-column>
        <el-table-column prop="cy" label="采油" align="center">
          <el-table-column prop="jbj" label="检泵井" width="150" align="center">
          <el-table-column
            prop="jbjJs"
            label="井数（口）"
            width="64"
            align="center"
          >
          </el-table-column>
          <el-table-column
            prop="jbjYx"
            label="日影响（吨）"
            width="64"
            align="center"
          >
          </el-table-column>
        </el-table-column>
        <el-table-column prop="jyj" label="积压井" width="150" align="center">
          <el-table-column
            prop="jyjJs"
            label="井数（口）"
            width="64"
            align="center"
          >
          </el-table-column>
          <el-table-column
            prop="jyjYx"
            label="日影响（吨）"
            width="64"
            align="center"
          >
          </el-table-column>
        </el-table-column>
        <el-table-column prop="cyj" label="测压井" width="150" align="center">
          <el-table-column
            prop="cyjJs"
            label="井数（口）"
            width="64"
            align="center"
          >
          </el-table-column>
          <el-table-column
            prop="cyjYx"
            label="日影响（吨）"
            width="64"
            align="center"
          >
          </el-table-column>
        </el-table-column>
            <el-table-column prop="csj" label="措施井" width="150" align="center">
          <el-table-column prop="yl" label="压裂" width="64" align="center">
            <el-table-column
              prop="ylJs"
              label="井数（口）"
              width="64"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="ylYx"
              label="日影响（吨）"
              width="64"
              align="center"
            >
            </el-table-column>
          </el-table-column>
          <el-table-column
            prop="tg"
            label="邻井封井/套管调查"
            width="64"
            align="center"
          >
            <el-table-column
              prop="tgJs"
              label="井数（口）"
              width="64"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="tgYx"
              label="日影响（吨）"
              width="64"
              align="center"
            >
            </el-table-column>
          </el-table-column>
          <el-table-column
            prop="csph"
            label="措施配合"
            width="64"
            align="center"
          >
            <el-table-column
              prop="csphJs"
              label="井数（口）"
              width="64"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="csphYx"
              label="日影响（吨）"
              width="64"
              align="center"
            >
            </el-table-column>
          </el-table-column>
        </el-table-column>
         <el-table-column prop="hjyx" label="合计影响" width="64" align="center">
          <el-table-column
            prop="hjyxJs"
            label="井数（口）"
            width="64"
            align="center"
          >
          </el-table-column>
          <el-table-column
            prop="hjyxYx"
            label="日影响（吨）"
            width="64"
            align="center"
          >
          </el-table-column>
        </el-table-column>
          </el-table-column>


        <el-table-column
          align="center"
          fixed="right"
          prop="approveStatus"
          label="审核状态"
        >
          <template slot-scope="scope">
            <el-tag
              :type="
                scope.row.approveStatus == '2'
                  ? 'success'
                  : scope.row.approveStatus == '1'
                  ? 'warning'
                  : scope.row.approveStatus == '0'
                  ? 'info'
                  : 'danger'
              "
              disable-transitions
              >{{
                scope.row.approveStatus == "2"
                  ? "已通过"
                  : scope.row.approveStatus == "1"
                  ? "未审核"
                  : scope.row.approveStatus == "0"
                  ? "未提交"
                  : "未通过"
              }}</el-tag
            >
          </template>
        </el-table-column>

        <el-table-column align="center" fixed="right" label="操作" width="100">
          <template slot-scope="scope">
            <el-button @click="handleClick(scope.row, 'check')" type="text"
              >查看</el-button
            >
            <el-button @click="handleClick(scope.row, 'edit')" type="text"
              >审核</el-button
            >
          </template>
        </el-table-column>
      </el-table>
      <!-- 分页器 -->
      <el-pagination
        align="right"
        background
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="pageNo"
        :page-sizes="[5, 10, 20, 30, 40, 50]"
        :page-size="pageSize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="total"
      >
      </el-pagination>
    </div>

    <!-- 弹出框 -->
    <el-dialog
      :title="myDialogTitle"
      :visible.sync="dialogFormVisible"
      :before-close="handleClose"
      :custom-class="saveAsDialog"
    >
      <el-form
        v-show="ischeck"
        :inline="true"
        :model="scyxrbForm"
        class="demo-form-inline"
        :rules="rules"
        ref="scyxrbForm"
        :disabled="isInput"
        label-position="left"
        label-width="190px"
      >
        <!-- <el-divider content-position="left">基础信息</el-divider> -->
        <el-divider content-position="left">钻井信息</el-divider>

        <el-row>
          <el-col :span="8">
            <el-form-item label="计划钻井:">
              <el-input
                v-model="scyxrbForm.zjJh"
                placeholder="请输入计划完成钻井数量（口）"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="完成钻井:">
              <el-input
                v-model="scyxrbForm.zjWc"
                placeholder="请输入已完成钻井数量（口）"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="钻机数量:">
              <el-input
                v-model="scyxrbForm.zjZj"
                placeholder="请输入钻机数量（台）"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="投产计划:">
              <el-input
                v-model="scyxrbForm.tcJh"
                placeholder="请输入计划完成钻井数量（口）"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="投产完成:">
              <el-input
                v-model="scyxrbForm.tcWc"
                placeholder="请输入已完成钻井数量（口）"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="老井补孔计划:">
              <el-input
                v-model="scyxrbForm.bkJh"
                placeholder="请输入计划完成钻井数量（口）"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="老井补孔完成:">
              <el-input
                v-model="scyxrbForm.bkWc"
                placeholder="请输入已完成钻井数量（口）"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="油水井常规压裂计划:">
              <el-input
                v-model="scyxrbForm.ylJh"
                placeholder="请输入计划完成钻井数量（口）"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="油水井常规压裂完成:">
              <el-input
                v-model="scyxrbForm.ylWc"
                placeholder="请输入已完成钻井数量（口）"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="缝网压裂计划:">
              <el-input
                v-model="scyxrbForm.fwJh"
                placeholder="请输入计划完成钻井数量（口）"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="缝网压裂完成:">
              <el-input
                v-model="scyxrbForm.fwWc"
                placeholder="请输入已完成钻井数量（口）"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>

        <el-divider content-position="left">注水信息</el-divider>
        <el-row>
          <el-col :span="12">
            <el-form-item label="注水阶段测调计划:">
              <el-input
                v-model="scyxrbForm.ctJh"
                placeholder="请输入计划完成钻井数量（口）"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="注水阶段测调完成:">
              <el-input
                v-model="scyxrbForm.ctWc"
                placeholder="请输入已完成钻井数量（口）"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="重配井口数:">
              <el-input
                v-model="scyxrbForm.cpJh"
                placeholder="请输入井口数量（口）"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="重配日影响:">
              <el-input
                v-model="scyxrbForm.cpWc"
                placeholder="请输入日影响（立方米）"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-divider content-position="left">采油信息</el-divider>
        <el-row>
          <el-col :span="12">
            <el-form-item label="检泵井井口数:">
              <el-input
                v-model="scyxrbForm.jbjJs"
                placeholder="请输入井口数量（口）"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="检泵井日影响:">
              <el-input
                v-model="scyxrbForm.jbjYx"
                placeholder="请输入日影响（吨）"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="积压井井口数">
              <el-input
                v-model="scyxrbForm.jyjJs"
                placeholder="请输入井口数量（口）"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="积压井日影响">
              <el-input
                v-model="scyxrbForm.jyjYx"
                placeholder="请输入日影响（吨）"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="测压井井口数">
              <el-input
                v-model="scyxrbForm.cyjJs"
                placeholder="请输入井口数量（口）"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="测压井日影响">
              <el-input
                v-model="scyxrbForm.cyjYx"
                placeholder="请输入日影响（吨）"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="措施井压裂井口数">
              <el-input
                v-model="scyxrbForm.ylJs"
                placeholder="请输入井口数量（口）"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="措施井压裂影响">
              <el-input
                v-model="scyxrbForm.ylYx"
                placeholder="请输入日影响（吨）"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="措施井套管井口数">
              <el-input
                v-model="scyxrbForm.tgJs"
                placeholder="请输入井口数量（口）"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="措施井套管影响">
              <el-input
                v-model="scyxrbForm.tgYx"
                placeholder="请输入日影响（吨）"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="措施井措施配合井口数">
              <el-input
                v-model="scyxrbForm.csphJs"
                placeholder="请输入井口数量（口）"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="措施井措施配合影响">
              <el-input
                v-model="scyxrbForm.csphYx"
                placeholder="请输入日影响（吨）"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="合计影响井口数">
              <el-input
                v-model="scyxrbForm.hjyxJs"
                placeholder="请输入井口数量（口）"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="合计影响">
              <el-input
                v-model="scyxrbForm.hjyxYx"
                placeholder="请输入日影响（吨）"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>

      <el-form
        v-show="!ischeck"
        :inline="true"
        :model="scyxrbForm"
        class="demo-form-inline"
        ref="scyxrbForm"
        label-position="left"
        label-width="80px"
      >
        <el-form-item label="审核:">
          <el-select
            v-model="scyxrbForm.approveStatus"
            placeholder="请选择审核状态"
          >
            <!-- scyxrbForm.approveStatus=='0'? scyxrbForm.approveStatus == '未审核':scyxrbForm.approveStatus=='1'?scyxrbForm.approveStatus == '通过':scyxrbForm.approveStatus == '不通过' -->
            <el-option label="未审核" value="1"></el-option>
            <el-option label="通过" value="2"></el-option>
            <el-option label="不通过" value="3"></el-option>
          </el-select>
        </el-form-item>

        <el-row>
          <el-form-item label="审核备注:">
            <el-input
              v-model="scyxrbForm.approveBz"
              placeholder="请输入审核备注"
            ></el-input>
          </el-form-item>
        </el-row>
      </el-form>

      <div slot="footer" class="dialog-footer" v-show="!ischeck">
        <el-button @click="close('scyxrbForm')">取 消</el-button>
        <el-button type="primary" @click="submitForm('scyxrbForm')"
          >确 定</el-button
        >
      </div>
    </el-dialog>
  </div>
</template>

<script>
import scyxrbApi from "@/api/scyxrb";

export default {
  data() {
    return {
      pageNo: 1, //当前页码
      pageSize: 10, //每页显示数量
      total: 0, //总数量
      // table数据
      tableData:[],
      //当前页码
      currentPage: 1,
      //表单填报的数据
      scyxrbForm: {
        id:'',
        approveStatus:'',//审核状态
        approveBz:'',//审核备注
        rq:'',//填报日期
        zjJh: "", //计划钻井
        zjWc: "", //钻井完成
        zjZj: "", //钻机数量
        tcJh: "", //计划投产
        tcWc: "", //投产完成
        bkJh: "", //计划老井补孔
        bkWc: "", //老井补孔完成
        ylJh: "", //油水井常规压裂计划
        ylWc: "", //油水井常规压裂计划
        fwJh: "", //缝网压裂计划
        fwWc: "", //缝网压裂完成
        ctJh: "", //计划阶段测调
        ctWc: "", //阶段测调完成
        cpJh: "", //重配井口数
        cpWc: "", //重配日影响
        jbjJs: "", //检泵井井口数
        jbjYx: "", //检泵井影响
        jyjJs: "", //积压井井口数
        jyjYx: "", //积压井影响
        cyjJs: "", //测压井井口数
        cyjYx: "", //测压井影响
        ylJs: "", //措施井压裂井口数
        ylYx: "", //措施井压裂影响
        tgJs: "", //措施井邻井封井井口数
        tgYx: "", //措施井邻井封井影响
        csphJs: "", //措施配合井口数
        csphYx: "", //措施配合影响
        hjyxJs: "", //合计影响井口数
        hjyxYx: "", //合计日影响
      },
      //验证规则
      rules: {
        scyxrbmc: [
          { required: true, message: '请输入水源井名称', trigger: 'blur' },
        ],
        ssdw: [
          { required: true, message: '请输入所属单位', trigger: 'blur' }
        ],
        tcrq: [
          { required: true, message: '请选择日期', trigger: 'change' }
        ],
      },
      //时间快捷选择
      pickerOptions: {
        // disabledDate(time) {
        //   return time.getTime() > Date.now();
        // },
        shortcuts: [{
          text: '今天',
          onClick(picker) {
            picker.$emit('pick', new Date());
          }
        }, {
          text: '昨天',
          onClick(picker) {
            const date = new Date();
            date.setTime(date.getTime() - 3600 * 1000 * 24);
            picker.$emit('pick', date);
          }
        }, {
          text: '一周前',
          onClick(picker) {
            const date = new Date();
            date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
            picker.$emit('pick', date);
          }
        }]
      },
      //获取当前日期
      currentTime:'',
      //
      saveAsDialog:'',
      //编辑框是否显示
      dialogFormVisible: false,
      //弹出框是否是查看
      ischeck: false,
      //控制查看时不可更改数据
      isInput:false,
      //弹出框标题
      myDialogTitle: '',
    }
  },
  created(){
    this.search();
  },
  mounted(){
    this.filterTime();
    // this.initDate();
  },
  // computed:{
  //   isBetterToStr() {
  //     return this.scyxrbForm.approveStatus.toString()
  //   }
  // },
  methods: {
    /**
    * 查询列表
    */
    async search() {
      // this.pageNo = pageNo; //当前页码
      // this.pageSize = pageSize; //每页显示数量
      //发送查询请求
      let res = await scyxrbApi.getDataList(this.pageNo,this.pageSize,0);
      //判断是否成功
      if(res.success){
        console.log(res.data);
        //赋值
        this.tableData = res.data.records;
        //总数量
        this.total = res.data.total;
      }
    },
    onSubmit() {
      console.log('submit!');
    },
    //关闭对话框
    handleClose(done) {      
      // 清空表单
      // this.$refs['scyxrbForm'].resetFields();
      // 清空表单校验，避免再次进来会出现上次校验的记录
      this.$refs['scyxrbForm'].clearValidate()
      done()
      
    },
      // 弹框关闭触发
    close(formName) {
      this.dialogFormVisible = false;
      // 清空表单校验，避免再次进来会出现上次校验的记录
      this.$refs[formName].clearValidate()
    },

    submitForm(formName) {
      //表单验证
      this.$refs[formName].validate(async (valid) => {
          if (valid) {
              let res = null;
              console.log(this.scyxrbForm.id+"111")
              //判断菜单ID是否为空
              if (this.scyxrbForm.id === '') {
                // this.scyxrbForm.rq = this.currentTime;
                  //发送添加请求
                  res = await scyxrbApi.addData(this.scyxrbForm);
              } else {
                  //发送审核请求
                  console.log(334345)
                  res = await scyxrbApi.updateData(this.scyxrbForm);
              }
              console.log(res)
              //判断是否成功
              if (res.success) {
                  // this.$message.success(res.message);
                  this.$message({ message: '修改审核状态成功！', type: 'success' });
                  //刷新
                  this.search();
                  //关闭窗口
                  this.dialogFormVisible = false;
              } else {
                console.log(res)
                  this.$message.error(res.message);
              }
          }
      })
    },
    handleClick(row, handle) {
      // console.log(row.approveStatus);
      this.dialogFormVisible = true;
      if (handle == 'check') {
        this.myDialogTitle = '生产运行日报统计表'
        this.saveAsDialog = 'saveAsDialog1'
        this.ischeck = true
        this.isInput = true;// 1.表单禁用
        // this.scyxrbForm = row
        this.$objCopy(row, this.scyxrbForm);//把当前要编辑的数据复制到数据域，给表单回显
        this.$message({ message: '成功打开', type: 'success' });
      } else if (handle == 'edit') {
          if(row.approveStatus!=2){
            this.myDialogTitle = '生产运行日报审核'
            this.saveAsDialog = 'saveAsDialog2'
            this.ischeck = false  
            this.isInput = false     
            this.$objCopy(row, this.scyxrbForm);//把当前要编辑的数据复制到数据域，给表单回显  
            this.scyxrbForm.approveStatus = row.approveStatus.toString()
          }else {
            this.dialogFormVisible = false;
            this.$message({ message: '已通过不可再审核！', type: 'error' });
          }
        }
    },
    /*** 当每页数量发生变化时触发该事件 */
    handleSizeChange(size) {
      console.log(size);
      this.pageSize = size;
      //将每页显示的数量交给成员变量
      this.search(this.pageNo, size);
    },
    /*** 当页码发生变化时触发该事件 */
    handleCurrentChange(page) {
      console.log(page);
      this.pageNo = page;
      //调用查询方法
      this.search(page, this.pageSize);
    },
    // 序号计算
    indexMethod (index) {
    // index默认在0开始，这里+1
      return index + 1 + (this.pageNo - 1) * this.pageSize
    },
    // 获取当前日期
    filterTime() {
      var date = new Date();
      var y = date.getFullYear();
      var m = date.getMonth() + 1;
      m = m < 10 ? '0' + m : m;
      var d = date.getDate();
      d = d < 10 ? '0' + d : d;
      this.currentTime = y + '-' + m + '-' + d;
    },
  }
}
</script>

<style lang="scss" scoped>
// 标题
.mytitle {
  font-size: large;
  padding-left: 10px;
  margin-bottom: 16px;
  float: left;
}

//按钮组
.myButtons {
  float: right;
}

//格子的样式
.bg-white {
  background: #ffffff;
}

.grid-content {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
}

.calendar ::v-deep .el-button-group::before {
  display: none;
}

.calendar ::v-deep .el-button-group::after {
  display: none;
}

// 分割线样式
.el-divider--horizontal {
  display: block;
  height: 2px;
  width: 100%;
  margin: 24px 0;
}

// 表单各项的样式
.el-form-item {
  margin: 15px 10px 15px 10px;
}

//表单禁用字体样式
.el-input.is-disabled ::v-deep .el-input__inner {
  color: #606266;
}
//对话框宽度
// .customWidth{
//         width:80%;
//     }
::v-deep .saveAsDialog1 {
  width: 60% !important;
}
::v-deep .saveAsDialog2 {
  width: 21% !important;
}
//日期选择框宽度
.el-date-editor.el-input,
.el-date-editor.el-input__inner {
  width: 200px;
}

.el-input {
  width: 200px;
}
</style>